<html><head><title>GetGadgetColor</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">GetGadgetColor()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Color = <font color="#006666"><b>GetGadgetColor</b></font>(#Gadget, ColorType)</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Returns a color setting from the specified gadget. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Gadget</i></td>
<td width="90%"> 
The gadget to use. 

</td></tr>
<tr><td><i>ColorType</i></td>
<td> 
The setting to get. This can be one of the following values: 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_Gadget_FrontColor</font>     : Gadget text
  <font color="#924B72">#PB_Gadget_BackColor</font>      : Gadget background
  <font color="#924B72">#PB_Gadget_LineColor</font>      : Color for gridlines
  <font color="#924B72">#PB_Gadget_TitleFrontColor</font>: Text color in the title        (for <a href="calendargadget.html">CalendarGadget()</a>)
  <font color="#924B72">#PB_Gadget_TitleBackColor</font> : Background color in the title  (for <a href="calendargadget.html">CalendarGadget()</a>)
  <font color="#924B72">#PB_Gadget_GrayTextColor</font>  : Color for grayed out text      (for <a href="calendargadget.html">CalendarGadget()</a>)
</font></pre>

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>

Returns the current color setting. This function returns the color that was 
previously set by <a href="setgadgetcolor.html">SetGadgetColor()</a>. If no custom color is set for the #Gadget and ColorType, 
the function returns -1. 


</blockquote><p><b>Remarks</b></p><blockquote>

This function is supported by the following gadgets: (See each gadget description for the supported ColorType values.) 
<br>
<br>
- <a href="calendargadget.html">CalendarGadget()</a> 
<br>
- <a href="containergadget.html">ContainerGadget()</a> 
<br>
- <a href="dategadget.html">DateGadget()</a> 
<br>
- <a href="editorgadget.html">EditorGadget()</a> 
<br>
- <a href="explorerlistgadget.html">ExplorerListGadget()</a> 
<br>
- <a href="explorertreegadget.html">ExplorerTreeGadget()</a> 
<br>
- <a href="hyperlinkgadget.html">HyperLinkGadget()</a> 
<br>
- <a href="listviewgadget.html">ListViewGadget()</a> 
<br>
- <a href="listicongadget.html">ListIconGadget()</a> 
<br>
- <a href="mdigadget.html">MDIGadget()</a> 
<br>
- <a href="progressbargadget.html">ProgressBarGadget()</a> 
<br>
- <a href="scrollareagadget.html">ScrollAreaGadget()</a> 
<br>
- <a href="spingadget.html">SpinGadget()</a> 
<br>
- <a href="stringgadget.html">StringGadget()</a> 
<br>
- <a href="textgadget.html">TextGadget()</a> 
<br>
- <a href="treegadget.html">TreeGadget()</a> 

</blockquote><p><b>See Also</b></p><blockquote>

<a href="setgadgetcolor.html">SetGadgetColor()</a>, <a href="getgadgetitemcolor.html">GetGadgetItemColor()</a>, <a href="setgadgetitemcolor.html">SetGadgetItemColor()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=getgadgetattribute.html>GetGadgetAttribute()</a> - <a href=index.html>Gadget Index</a> - <a href=getgadgetdata.html>GetGadgetData()</a> ->

</body></html>